-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Fix img2img DDIM index out of bound #1137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Added a [community solution](CompVis/stable-diffusion#111 (comment)) to fix index out of bound when doing img2img generation with `ddim` sampler. Also, restored `steps_out` to be `ddim_timesteps + 1` since the removal was meant to fix the [1000 steps issue](CompVis/stable-diffusion#111)
|
Thanks for this. Is there a test case that you use to test the bug before and after the fix? It is certain values of step, is that right? |
After merging version 2.0 to my local machine, I encountered the following error frequently during img2img generation: Image generation no longer work after that and restart is required. The common configuration that I used at that time is as follows:
After applying the fix, I no longer receive the error above. Please note that the value of It seems that the error only happens when |
|
That would explain why I never see the error. I tend to use steps of 50, 20 and 10 during testing. I'll go ahead and approve. |
lstein
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Added a community solution to fix index out of bound when doing img2img generation with
ddimsampler. Also, restoredsteps_outto beddim_timesteps + 1since the removal was meant to fix the 1000 steps issue